package com.hfkh.keyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName(value = "tb_resource")
public class Resource implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;//id

    @TableField("resource_title")
    private String resourceTitle;//资源标题

    @TableField("resource_url")
    private String resourceUrl;//资源地址

    @TableField("pic_url")
    private String picUrl;//资源封面

    @TableField("major_id")
    private Integer majorId;//所属专业id

    //private Major major;//专业对象
    @TableField("delete_flags")
    @TableLogic
    private Integer deleteFlags;

    @TableField("create_date")
    private LocalDateTime createDate;//创建时间
}
